# 输入未知个数字求平均值
theSum = 0
count = 0
while True :
    num = input("请输入一个数字：")
    if num == ";" :
        break
    num = float(num)
    count += 1
    theSum += num
avg = theSum /count
print(avg)

